package collection;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionDemo2 {
    public static void main(String[] args) {
        Collection c = new ArrayList();
        c.add(new Point(1,2));
        c.add(new Point(3,4));
        c.add(new Point(5,6));
        c.add(new Point(7,8));
        c.add(new Point(9,10));
        c.add(new Point(11,12));
        c.add(new Point(13,14));

        System.out.println(c);
        /*System.out.println(c.size());
        System.out.println(c.isEmpty());*/
        Point c2 = new Point(1,2);

        Boolean contains = c.contains(c2);
        System.out.println(contains);

        boolean m=c.remove(c2);
        System.out.println(m);
        System.out.println(c);


    }



}
